<?php require_once('../../core/import.php');?>
<?php User::Permission('FAQ_UPDATE'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {
        #数据处理
        $Data=array
        (
            'ClassID'=>Functions::FormArgs('ClassID'),
            'Answer'=>  Functions::FormArgs('Answer',NULL,FALSE),
            'Question'=>  Functions::FormArgs('Question')
        );

        DB::UpdateRowByID('faq',Functions::FormArgs('ID'),$Data);
        echo '{"Number":"0","Description":"成功修改"}';
    }
?>